<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Windows Terminal安装与美化 | 小波的博客</title><meta name="keywords" content="工具篇"><meta name="author" content="Steve"><meta name="copyright" content="Steve"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="Windows Terminal安装与美化">
<meta property="og:type" content="article">
<meta property="og:title" content="Windows Terminal安装与美化">
<meta property="og:url" content="https://steve6636.gitee.io/2021/05/10/Windows-Terminal-install-settings/index.html">
<meta property="og:site_name" content="小波的博客">
<meta property="og:description" content="Windows Terminal安装与美化">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://gitee.com/forkiller/picture/raw/master/img/20210929231042.png">
<meta property="article:published_time" content="2021-05-10T04:26:32.000Z">
<meta property="article:modified_time" content="2021-09-30T06:47:51.560Z">
<meta property="article:author" content="Steve">
<meta property="article:tag" content="工具篇">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gitee.com/forkiller/picture/raw/master/img/20210929231042.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://steve6636.gitee.io/2021/05/10/Windows-Terminal-install-settings/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'mediumZoom',
  Snackbar: undefined,
  source: {
    jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js',
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
    },
    fancybox: {
      js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
      css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: true,
  isanchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = { 
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2021-09-30 14:47:51'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const fontSizeVal = saveToLocal.get('global-font-size')
    if (fontSizeVal !== undefined) {
      document.documentElement.style.setProperty('--global-font-size', fontSizeVal + 'px')
    }
    })(window)</script><meta name="generator" content="Hexo 5.4.0"><link rel="alternate" href="/atom.xml" title="小波的博客" type="application/atom+xml">
</head><body><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="author-avatar"><img class="avatar-img" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210327175316.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/archives/"><div class="headline">文章</div><div class="length-num">26</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/tags/"><div class="headline">标签</div><div class="length-num">11</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/categories/"><div class="headline">分类</div><div class="length-num">9</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于我</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 工具箱</span></a></div><div class="menus_item"><a class="site-page" href="/friends"><i class="fa-fw fas fa-address-book"></i><span> Friends</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://gitee.com/forkiller/picture/raw/master/img/20210929231042.png')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">小波的博客</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于我</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 工具箱</span></a></div><div class="menus_item"><a class="site-page" href="/friends"><i class="fa-fw fas fa-address-book"></i><span> Friends</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Windows Terminal安装与美化</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2021-05-10T04:26:32.000Z" title="发表于 2021-05-10 12:26:32">2021-05-10</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2021-09-30T06:47:51.560Z" title="更新于 2021-09-30 14:47:51">2021-09-30</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E5%B7%A5%E5%85%B7%E7%AF%87/">工具篇</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">2.2k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>8分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h1 id="Windows-Terminal安装与美化"><a href="#Windows-Terminal安装与美化" class="headerlink" title="Windows Terminal安装与美化"></a>Windows Terminal安装与美化</h1><p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231042.png"></p>
<h2 id="一、Windows-Terminal-安装"><a href="#一、Windows-Terminal-安装" class="headerlink" title="一、Windows Terminal 安装"></a>一、Windows Terminal 安装</h2><h3 id="1-Windows-Terminal-介绍"><a href="#1-Windows-Terminal-介绍" class="headerlink" title="1 Windows Terminal 介绍"></a>1 Windows Terminal 介绍</h3><p>Windows Teminal 是一款新式、快速、高效、强大的终端应用程序，适用于命令行工具、命令提示符、PowerShell、WSL (Linux 子系统) 等等的 Shell 用户，主要功能包括多选项卡、窗格、Unicode/UTF-8 字符支持、GPU 加速文本渲染引擎，以及自定义主题、样式和配置等等。</p>
<p>Github 地址：<a target="_blank" rel="noopener" href="https://github.com/microsoft/terminal">https://github.com/microsoft/terminal</a></p>
<p>官网下载地址：<a target="_blank" rel="noopener" href="https://www.microsoft.com/zh-cn/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab">https://www.microsoft.com/zh-cn/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab</a></p>
<h3 id="2-安装-Windows-Terminal"><a href="#2-安装-Windows-Terminal" class="headerlink" title="2 安装 Windows Terminal"></a>2 安装 Windows Terminal</h3><p>打开 <code>Microsoft Store</code>，搜索<code>Windows Teminal</code> 并安装。</p>
<p>-<img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231031.jpg"></p>
<p>安装完成后，第一次启动如图</p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231204.png" alt="image-20210615165533466"></p>
<h3 id="3-安装最新版本-PowerShell"><a href="#3-安装最新版本-PowerShell" class="headerlink" title="3 安装最新版本 PowerShell"></a>3 安装最新版本 PowerShell</h3><p>Widows 10 默认是 Windows PowerShell 是 5.X 版本，在 Win10 V1903 以上版本后，打开 PowerShell 时，会提示 “尝试新的跨平台 PowerShell <a target="_blank" rel="noopener" href="https://aka.ms/pscore6%E2%80%9D">https://aka.ms/pscore6”</a> ，打开提示网址。</p>
<p>下载地址：<a target="_blank" rel="noopener" href="https://github.com/PowerShell/PowerShell/releases">https://github.com/PowerShell/PowerShell/releases</a></p>
<p>选择 <code>PowerShell-&lt;version&gt;-win-&lt;os-arch&gt;.msi</code> 格式的安装包：</p>
<img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231209.png" alt="image-20210615165803596" style="zoom:50%;" />

<p>下载完成后，一路点击 Next 安装即可</p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231214.png" alt="image-20210615170114847"></p>
<h2 id="二、Windows-Terminal-美化"><a href="#二、Windows-Terminal-美化" class="headerlink" title="二、Windows Terminal 美化"></a>二、Windows Terminal 美化</h2><h3 id="1-安装-Git"><a href="#1-安装-Git" class="headerlink" title="1 安装 Git"></a>1 安装 Git</h3><p>Git 官网：<a target="_blank" rel="noopener" href="https://git-scm.com/">https://git-scm.com/</a></p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231218.png" alt="image-20210615170245290"></p>
<p>下载好 Git 的安装包，一路安装即可</p>
<h3 id="2-安装-posh-git-和-oh-my-posh"><a href="#2-安装-posh-git-和-oh-my-posh" class="headerlink" title="2 安装 posh-git 和 oh-my-posh"></a>2 安装 posh-git 和 oh-my-posh</h3><p><strong>posh-git 和 oh-my-posh 简介</strong></p>
<p>posh-git 可以将 git 功能集成到 powershell 中 ， 而 oh-my-posh 是用于 powershell 的主题引擎类似于 OSX 和 Linux 系统中的 oh-My-ZSH</p>
<p>打开  Windows Terminal ，选择 PowerShell，依次输入如下命令</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Install-Module</span> posh<span class="literal">-git</span></span><br><span class="line"><span class="built_in">Install-Module</span> <span class="built_in">oh</span><span class="literal">-my</span><span class="literal">-posh</span></span><br></pre></td></tr></table></figure>

<p><strong>如果你的电脑里没有安装 Git，在输入 <code>Import-Module posh-git</code> 会报错</strong></p>
<p>设置 PowerShell 的初始化文件，在 PowerShell 中复制如下命令</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">if</span> (!(<span class="built_in">Test-Path</span> <span class="literal">-Path</span> <span class="variable">$PROFILE</span> )) &#123; <span class="built_in">New-Item</span> <span class="literal">-Type</span> File <span class="literal">-Path</span> <span class="variable">$PROFILE</span> <span class="literal">-Force</span> &#125;</span><br><span class="line">notepad <span class="variable">$PROFILE</span></span><br></pre></td></tr></table></figure>

<p>粘贴以下内容进 profile 文件</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Import-Module</span> posh<span class="literal">-git</span></span><br><span class="line"><span class="built_in">Import-Module</span> <span class="built_in">oh</span><span class="literal">-my</span><span class="literal">-posh</span></span><br><span class="line"><span class="built_in">Set-PoshPrompt</span> ys</span><br></pre></td></tr></table></figure>

<p>其中 ys 是要设置的主题名称 ， 可以使用的名称及其对应样式如下 ,下图中的 master 前端 分支符号就是 posh-git的效果</p>
<p> <img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231223.png"></p>
<h3 id="3-安装字体文件"><a href="#3-安装字体文件" class="headerlink" title="3 安装字体文件"></a>3 安装字体文件</h3><p>打开下面的链接 ， 下载并安装该字体文件 ， 用以支持的 oh-my-posh 主题中的闪电（<img src= "/img/loading.gif" data-lazy-src="d:\Users\pro13\Documents\jianguoyun\Notes\Other_notes\Windows-Terminal-install-settings.assets\image-20210615171459144.png" alt="image-20210615171459144" style="zoom: 50%;" />）等特殊字符</p>
<p><a target="_blank" rel="noopener" href="https://github.com/adam7/delugia-code/releases/download/v2102.03/Delugia.Nerd.Font.Complete.ttf">https://github.com/adam7/delugia-code/releases/download/v2102.03/Delugia.Nerd.Font.Complete.ttf</a></p>
<p>下载好字体文件后，点击文件选择为所有用户安装(A)</p>
<p>不安装这个字体，则终端上有的字符和图标就会显示为？或”口“。</p>
<h3 id="4-更换主题"><a href="#4-更换主题" class="headerlink" title="4 更换主题"></a>4 更换主题</h3><p>在 <a target="_blank" rel="noopener" href="https://windowsterminalthemes.dev/">https://windowsterminalthemes.dev/</a> 中找到想要的主题 ， 点击 Get theme 复制主题配置文本 。</p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231231.png" alt="image-20210615171720468"></p>
<p>设置 Windows Terminal，ctrl+，打开巧文件（快捷键为 ctrl+Shift +，）， 找到一个名为 schemes 的数组 ， 将<br>刚刚复制的主题文本粘贝占到该数组中 ， 可以添加多个 。</p>
<img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231231.png" alt="image-20210615171919384" style="zoom:67%;" />

<p>在 profiles 中找到为的对象添加以下设置 ：</p>
<figure class="highlight properties"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">&quot;colorscheme&quot;</span>: <span class="string">&quot;xxx&quot;,						// 主题名称</span></span><br><span class="line"><span class="meta">&quot;useAcry1ic&quot;</span>: <span class="string">true,  						// 启用毛玻璃效果</span></span><br><span class="line"><span class="meta">&quot;closeOnExit&quot;</span>: <span class="string">false,</span></span><br><span class="line"><span class="meta">&quot;acryliOpacity&quot;</span>: <span class="string">0.8,						// 透明度（0-1）</span></span><br><span class="line"><span class="meta">&quot;fontFace&quot;</span>: <span class="string">&quot;Delugia Nerd Font&quot;,  			// 指定字体</span></span><br><span class="line"><span class="meta">&quot;fontSize&quot;</span>: <span class="string">14,								// 字号大小</span></span><br><span class="line"><span class="meta">&quot;backgroundImage&quot;</span>: <span class="string">&quot;D：\\Picture\xxx.gif&quot;,  // 背景图片路径,可设置动态 gif</span></span><br><span class="line"><span class="meta">&quot;backgroundImageAlignment&quot;</span>: <span class="string">&quot;bottomRight&quot;, // 背景图片对齐方式</span></span><br><span class="line"><span class="meta">&quot;backgroundImageOpacity&quot;</span>: <span class="string">0.3,			   // 背景图片透明度</span></span><br><span class="line"><span class="meta">&quot;backgroundImageStretchMode&quot;</span>: <span class="string">&quot;fill&quot;,      // 背景图片填充方式</span></span><br><span class="line"><span class="meta">&quot;antialiasingMode&quot;</span>: <span class="string">&quot;cleartype&quot; 		   // 消除文字锯齿</span></span><br></pre></td></tr></table></figure>

<p>如果面板透明度设置无效，需要打开系统的透明效果。</p>
<p><strong><code>设置-个性化-颜色-透明效果</code></strong></p>
<p>更多参数解释</p>
<table><thead><tr>
            <th>属性</th>
            <th>释义</th>
            <th>说明</th>
        </tr></thead>
    <tbody>
        <tr>
            <td>alwaysShowTabs</td>
            <td>始终显示标签</td>
            <td>true|false，false 就会自动隐藏标签栏</td>
        </tr>
        <tr>
            <td>defaultProfile</td>
            <td>默认终端</td>
            <td>GUID，用于连接终端配置</td>
        </tr>
        <tr>
            <td>initialCols</td>
            <td>默认列数</td>
            <td></td>
        </tr>
        <tr>
            <td>initialRows</td>
            <td>默认行数</td>
            <td>启动时默认的终端是多长多宽</td>
        </tr>
        <tr>
            <td>keybindings</td>
            <td>快捷键配置</td>
            <td>终端的快捷键</td>
        </tr>
        <tr>
            <td>command</td>
            <td>快捷键执行的命令</td>
            <td></td>
        </tr>
        <tr>
            <td>keys</td>
            <td>快捷键</td>
            <td></td>
        </tr>
        <tr>
            <td>requestedTheme</td>
            <td>主题</td>
            <td></td>
        </tr>
        <tr>
            <td>showTabsInTitlebar</td>
            <td>在标题栏中显示终端窗口标签栏</td>
            <td></td>
        </tr>
        <tr>
            <td>showTerminalTitleInTitlebar</td>
            <td>在标签栏中显示终端标签</td>
            <td></td>
        </tr>
        <tr>
            <td>acrylicOpacity</td>
            <td>不透明度</td>
            <td>透明度，值越大，背景越浓，否则越淡</td>
        </tr>
        <tr>
            <td>closeOnExit</td>
            <td>退出后关闭</td>
            <td></td>
        </tr>
        <tr>
            <td>colorScheme</td>
            <td>颜色主题</td>
            <td></td>
        </tr>
        <tr>
            <td>commandline</td>
            <td>命令行程序</td>
            <td></td>
        </tr>
        <tr>
            <td>cursorColor</td>
            <td>光标颜色</td>
            <td></td>
        </tr>
        <tr>
            <td>cursorShape</td>
            <td>光标形状</td>
            <td>bar|empytBox|filledBox|vintage</td>
        </tr>
        <tr>
            <td>fontFace</td>
            <td>字体</td>
            <td></td>
        </tr>
        <tr>
            <td>fontSize</td>
            <td>字体大小</td>
            <td></td>
        </tr>
        <tr>
            <td>guid</td>
            <td>GUID</td>
            <td>终端配置标识</td>
        </tr>
        <tr>
            <td>historySize</td>
            <td>历史大小</td>
            <td></td>
        </tr>
        <tr>
            <td>icon</td>
            <td>图标</td>
            <td>使用绝对路径</td>
        </tr>
        <tr>
            <td>name</td>
            <td>名称</td>
            <td></td>
        </tr>
        <tr>
            <td>padding</td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>snapOnInput</td>
            <td>嗅探输入</td>
            <td></td>
        </tr>
        <tr>
            <td>startingDirectory</td>
            <td>初始目录</td>
            <td>起始目录</td>
        </tr>
        <tr>
            <td>useAcrylic</td>
            <td>使用不透明度</td>
            <td></td>
        </tr>
    </tbody>
</table>


<h3 id="5-毛玻璃主题"><a href="#5-毛玻璃主题" class="headerlink" title="5 毛玻璃主题"></a>5 毛玻璃主题</h3><p>若喜欢毛玻璃主题，可以在 <code>&quot;profiles&quot;</code> 内加入以下两个参数：</p>
<ul>
<li>useAcrylic：如果设置为 <code>true</code>，窗口将使用 <code>acrylic</code> 背景。 设置为 <code>false</code> 时，窗口将为普通的、不带纹理的背景。默认值为 <code>false</code>。</li>
<li>acrylicOpacity：将 <code>useAcrylic</code> 设置为 <code>true</code> 时，这会设置该配置文件的窗口透明度。 接受的浮点值为 <code>0-1</code>。默认值为 <code>0.5</code></li>
</ul>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210930144539.png" alt="毛玻璃效果"></p>
<p><strong>Terminal 具有官方中文文档，可以在以下链接阅读了解更多配置的作用</strong></p>
<p><a target="_blank" rel="noopener" href="https://docs.microsoft.com/zh-cn/windows/terminal/customize-settings/startup">https://docs.microsoft.com/zh-cn/windows/terminal/customize-settings/startup</a></p>
<h3 id="6-在命令行中切换主题"><a href="#6-在命令行中切换主题" class="headerlink" title="6 在命令行中切换主题"></a>6 在命令行中切换主题</h3><p>oh-my-posh 提供了 10 款 漂亮 的主题供我们选择。</p>
<p><code>Agnoster,Avit,Darkblood,Fish,Honukai,Paradox,PowerLine,robbyrussell,Sorin,tehrob</code></p>
<p>可以使用 <code>Set-PoshPrompt [主题名] 配置主题</code>，如 <code>Set-PoshPrompt fish</code> 可以按 Tab 自动补全</p>
<p>将下图中 的 Theme 替换为 PoshPrompt 即可</p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210930140239.gif" alt="Window Terminal 主题演示"></p>
<h3 id="7-在-IDE-中使用美化后-Terminal"><a href="#7-在-IDE-中使用美化后-Terminal" class="headerlink" title="7 在 IDE 中使用美化后 Terminal"></a>7 在 IDE 中使用美化后 Terminal</h3><p>idea、VsCode、Pycharm 中使用 Terminal </p>
<p>找到 三款 ide 中 settings  的 termainl</p>
<p>IDEA</p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231246.png" alt="image-20210615185308380"></p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231252.png" alt="image-20210615185408097"></p>
<p>VsCode</p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231256.png" alt="image-20210615185132932"></p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231256.png" alt="image-20210615185209188"></p>
<p>Pycharm</p>
<p>对特殊字体支持不是很友好</p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231311.png" alt="image-20210615190132283"></p>
<h3 id="8-分屏-多窗格-缩放"><a href="#8-分屏-多窗格-缩放" class="headerlink" title="8 分屏 / 多窗格 / 缩放"></a>8 分屏 / 多窗格 / 缩放</h3><p>他可以像 Item2 和 Cmder 一样 在同一个 Tab 下 分屏，如下图 </p>
<p><img src= "/img/loading.gif" data-lazy-src="https://srb-file-steve.oss-cn-shenzhen.aliyuncs.com/image-20210615190537248.png" alt="image-20210615190537248"></p>
<p>快捷键：</p>
<p>分屏快捷键如下： </p>
<p>水平分屏：Alt + Shift + 减号 </p>
<p>垂直分屏：Alt + Shift + 加号 </p>
<p>切换聚焦的分屏视图：alt + (left/right/up/down) </p>
<p>调节分屏的窗口大小：alt + shift + (left/right/up/down) （调节后很难再等分会原来的模样）</p>
<p>缩放当前视图：Ctrl+ 加号 / 减号 （或者 Ctrl + 鼠标滚轮）</p>
<p>关闭当前视图：Ctrl + Shift + W，或者输入 exit</p>
<h3 id="9-安装-Scoop-包管理工具"><a href="#9-安装-Scoop-包管理工具" class="headerlink" title="9 安装 Scoop 包管理工具"></a>9 安装 Scoop 包管理工具</h3><p>Scoop 是一系列包的管理器，便利之处就是省去了安装软件的「搜索 - 下载 - 安装」的步骤，让我们能够通过「一行代码」急速安装。安装 Scoop 很简单，不过你需要先确定一些基础环境是否符合安装要求：</p>
<ul>
<li>Windows 版本不低于 Windows 7</li>
<li>Windows 中的 PowerShell 版本不低于 PowerShell 3</li>
<li>你能 <strong>正常、快速</strong> 的访问 GitHub 并下载上面的资源</li>
<li>你的 Windows 用户名为英文（Windows 用户环境变量中路径值不支持中文字符）</li>
</ul>
<p>在 PowerShell 中输入下面内容，保证允许本地脚本的执行：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">set-executionpolicy remotesigned -scope currentuser</span><br></pre></td></tr></table></figure>

<p>然后执行下面的命令安装 Scoop：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">iex (new-object net.webclient).downloadstring(&#39;https:&#x2F;&#x2F;get.scoop.sh&#39;)</span><br></pre></td></tr></table></figure>

<p>静待脚本执行完成就可以了，安装成功后，让我们尝试一下：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">scoop help</span><br></pre></td></tr></table></figure>

<p><img src= "/img/loading.gif" data-lazy-src="https://srb-file-steve.oss-cn-shenzhen.aliyuncs.com/image-20210615193024115.png" alt="image-20210615193024115"></p>
<p>这样就表明我们 Scoop 已经成功安装了。<code>scoop help</code> 这个命令就是 Scoop 的使用说明书，如果我们记不住某个命令怎么执行，也可以通过 <code>scoop help</code> 来唤起这个命令参考说明。</p>
<p>scoop 详解参考：</p>
<p>安装 colortool </p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">scoop install colortool</span><br></pre></td></tr></table></figure>

<p>colortool 的相关命令</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="literal">-c</span> -<span class="literal">-current</span>：打印当前应用方案的颜色表</span><br><span class="line"><span class="literal">-q</span> -<span class="literal">-quiet</span>：使用后不要打印颜色表</span><br><span class="line"><span class="literal">-e</span> -<span class="literal">-errors</span>：在控制台上报告方案分析错误</span><br><span class="line"><span class="literal">-d</span> -<span class="literal">-defaults</span>：仅将方案应用于注册表中的默认值</span><br><span class="line"><span class="literal">-b</span> -<span class="literal">-both</span>：将方案同时应用于当前控制台和默认控制台。</span><br><span class="line"><span class="literal">-x</span> -<span class="literal">-xterm</span>：使用VT序列设置颜色。用于设置WSL中的颜色。仅适用于Windows版本&gt;=<span class="number">17048</span>。</span><br><span class="line"><span class="literal">-s</span> -<span class="literal">-schemes</span>：显示所有可用的方案</span><br><span class="line"><span class="literal">-l</span> -<span class="literal">-location</span>：显示schemes目录的完整路径</span><br><span class="line"><span class="literal">-v</span> -<span class="literal">-version</span>：显示版本号</span><br><span class="line"><span class="literal">-o</span> -<span class="literal">-output</span>&lt;filename&gt;：将当前颜色表输出到文件（以.ini格式）</span><br></pre></td></tr></table></figure>

<p>- 是缩写，– 是全写 </p>
<p>使用 colortool -s 看到 也提供了 8 套配色方案: </p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">campbell<span class="literal">-legacy</span>.ini </span><br><span class="line">campbell.ini </span><br><span class="line">cmd<span class="literal">-legacy</span>.ini </span><br><span class="line">deuteranopia.itermcolors </span><br><span class="line">OneHalfDark.itermcolors </span><br><span class="line">OneHalfLight.itermcolors </span><br><span class="line">solarized_dark.itermcolors </span><br><span class="line">solarized_light.itermcolors </span><br></pre></td></tr></table></figure>

<p>colortool -c</p>
<p><img src= "/img/loading.gif" data-lazy-src="https://srb-file-steve.oss-cn-shenzhen.aliyuncs.com/image-20210615193903166.png" alt="image-20210615193903166"></p>
<h2 id="三、安装-WSL"><a href="#三、安装-WSL" class="headerlink" title="三、安装 WSL"></a>三、安装 WSL</h2><h3 id="1-WSL-安装"><a href="#1-WSL-安装" class="headerlink" title="1 WSL 安装"></a>1 WSL 安装</h3><p>WSL = windows subsystem for linux  （WSL）服务</p>
<p>打开 <code>Microsoft Store</code>，搜索<code>Ubuntu</code> 搜索并安装 Ubuntu。</p>
<p><img src= "/img/loading.gif" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210929231512.png" alt="image-20210615194612138"></p>
<p>安装完成后启动 Window Terminal ，点击下拉三角图标选择 Ubuntu-20.04，启动 Ubuntu 子系统</p>
<p><img src= "/img/loading.gif" data-lazy-src="https://srb-file-steve.oss-cn-shenzhen.aliyuncs.com/image-20210615202506195.png" alt="image-20210615202506195"></p>
<h3 id="2-Ubuntu-安装-Rander"><a href="#2-Ubuntu-安装-Rander" class="headerlink" title="2 Ubuntu 安装 Rander"></a>2 Ubuntu 安装 Rander</h3><p>Rander 是一款适用于 Linux  系统下的文件管理器。详见《Linux 系统安装 Ranger 文件管理工具》一文</p>
<p>参考博客：</p>
<ol>
<li><p>Windows Terminal 基础设置及美化步骤(<a target="_blank" rel="noopener" href="https://www.jianshu.com/p/5892c38be655">https://www.jianshu.com/p/5892c38be655</a>)</p>
</li>
<li><p>Windows Terminal 安装并美化(<a target="_blank" rel="noopener" href="https://www.jb51.cc/python/991769.html">https://www.jb51.cc/python/991769.html</a>)</p>
</li>
<li><p>告别 Windows 终端的难看难用，从改造 PowerShell 的外观开始(<a target="_blank" rel="noopener" href="https://sspai.com/post/52868">https://sspai.com/post/52868</a>)</p>
</li>
<li><p>一行代码」搞定软件安装卸载，用 Scoop 管理你的 Windows 软件(<a target="_blank" rel="noopener" href="https://sspai.com/post/52496">https://sspai.com/post/52496</a>)</p>
</li>
<li><p>Windows 10 包管理(<a target="_blank" rel="noopener" href="https://www.chuchur.com/article/window-10-package-manage">https://www.chuchur.com/article/window-10-package-manage</a>)</p>
</li>
</ol>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="mailto:undefined">Steve</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://steve6636.gitee.io/2021/05/10/Windows-Terminal-install-settings/">https://steve6636.gitee.io/2021/05/10/Windows-Terminal-install-settings/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://steve6636.gitee.io" target="_blank">小波的博客</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/%E5%B7%A5%E5%85%B7%E7%AF%87/">工具篇</a></div><div class="post_share"><div class="social-share" data-image="https://gitee.com/forkiller/picture/raw/master/img/20210929231042.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js" defer></script></div></div><div class="post-reward"><div class="reward-button button--animated"><i class="fas fa-qrcode"></i> 打赏</div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="/img/wechat.jpg" target="_blank"><img class="post-qr-code-img" data-lazy-src="/img/wechat.jpg" alt="wechat"/></a><div class="post-qr-code-desc">wechat</div></li><li class="reward-item"><a href="/img/alipay.jpg" target="_blank"><img class="post-qr-code-img" data-lazy-src="/img/alipay.jpg" alt="alipay"/></a><div class="post-qr-code-desc">alipay</div></li></ul></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2021/05/26/IDEA%20%E8%87%AA%E5%B8%A6%20database%20%E4%BE%A7%E8%BE%B9%E6%A0%8F%E7%94%9F%E6%88%90JavaBean/"><img class="prev-cover" data-lazy-src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">IDEA 自带 database 侧边栏生成JavaBean</div></div></a></div><div class="next-post pull-right"><a href="/2021/04/07/Lombok%20%E7%9A%84%E4%BD%BF%E7%94%A8_20210320/"><img class="next-cover" data-lazy-src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info"></div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span> 相关推荐</span></div><div class="relatedPosts-list"><div><a href="/2021/05/27/Cmder-install-settings/" title="Cmder 安装与配置"><img class="cover" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210930083746.png" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-05-27</div><div class="title">Cmder 安装与配置</div></div></a></div><div><a href="/2021/07/04/IDEA debug 使用教程/" title="IDEA debug 使用教程"><img class="cover" data-lazy-src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-07-04</div><div class="title">IDEA debug 使用教程</div></div></a></div><div><a href="/2021/05/26/IDEA 自带 database 侧边栏生成JavaBean/" title="IDEA 自带 database 侧边栏生成JavaBean"><img class="cover" data-lazy-src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-05-26</div><div class="title">IDEA 自带 database 侧边栏生成JavaBean</div></div></a></div><div><a href="/2021/03/26/Typora-常用快捷键-官网翻译/" title="Typora-常用快捷键-官网翻译"><img class="cover" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210808160612.png" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-03-26</div><div class="title">Typora-常用快捷键-官网翻译</div></div></a></div><div><a href="/2021/08/07/为PDF电子书添加目录/" title="为PDF电子书添加目录"><img class="cover" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210808154637.jpeg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-08-07</div><div class="title">为PDF电子书添加目录</div></div></a></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="card-info-avatar is-center"><img class="avatar-img" data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20210327175316.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/><div class="author-info__name">Steve</div><div class="author-info__description">路漫漫其修远兮，吾将上下而求索</div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">26</div></a></div><div class="card-info-data-item is-center"><a href="/tags/"><div class="headline">标签</div><div class="length-num">11</div></a></div><div class="card-info-data-item is-center"><a href="/categories/"><div class="headline">分类</div><div class="length-num">9</div></a></div></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/forkiller"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/forkiller" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:1518109600@qq.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">冷灯看剑，剑上几番功名？炉香无须计苍生，纵一川烟逝，万丈云埋，孤阳还照古陵</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#Windows-Terminal%E5%AE%89%E8%A3%85%E4%B8%8E%E7%BE%8E%E5%8C%96"><span class="toc-text">Windows Terminal安装与美化</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%80%E3%80%81Windows-Terminal-%E5%AE%89%E8%A3%85"><span class="toc-text">一、Windows Terminal 安装</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-Windows-Terminal-%E4%BB%8B%E7%BB%8D"><span class="toc-text">1 Windows Terminal 介绍</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-%E5%AE%89%E8%A3%85-Windows-Terminal"><span class="toc-text">2 安装 Windows Terminal</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#3-%E5%AE%89%E8%A3%85%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC-PowerShell"><span class="toc-text">3 安装最新版本 PowerShell</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BA%8C%E3%80%81Windows-Terminal-%E7%BE%8E%E5%8C%96"><span class="toc-text">二、Windows Terminal 美化</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-%E5%AE%89%E8%A3%85-Git"><span class="toc-text">1 安装 Git</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-%E5%AE%89%E8%A3%85-posh-git-%E5%92%8C-oh-my-posh"><span class="toc-text">2 安装 posh-git 和 oh-my-posh</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#3-%E5%AE%89%E8%A3%85%E5%AD%97%E4%BD%93%E6%96%87%E4%BB%B6"><span class="toc-text">3 安装字体文件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#4-%E6%9B%B4%E6%8D%A2%E4%B8%BB%E9%A2%98"><span class="toc-text">4 更换主题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#5-%E6%AF%9B%E7%8E%BB%E7%92%83%E4%B8%BB%E9%A2%98"><span class="toc-text">5 毛玻璃主题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#6-%E5%9C%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%B8%AD%E5%88%87%E6%8D%A2%E4%B8%BB%E9%A2%98"><span class="toc-text">6 在命令行中切换主题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-%E5%9C%A8-IDE-%E4%B8%AD%E4%BD%BF%E7%94%A8%E7%BE%8E%E5%8C%96%E5%90%8E-Terminal"><span class="toc-text">7 在 IDE 中使用美化后 Terminal</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#8-%E5%88%86%E5%B1%8F-%E5%A4%9A%E7%AA%97%E6%A0%BC-%E7%BC%A9%E6%94%BE"><span class="toc-text">8 分屏 &#x2F; 多窗格 &#x2F; 缩放</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#9-%E5%AE%89%E8%A3%85-Scoop-%E5%8C%85%E7%AE%A1%E7%90%86%E5%B7%A5%E5%85%B7"><span class="toc-text">9 安装 Scoop 包管理工具</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%89%E3%80%81%E5%AE%89%E8%A3%85-WSL"><span class="toc-text">三、安装 WSL</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-WSL-%E5%AE%89%E8%A3%85"><span class="toc-text">1 WSL 安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-Ubuntu-%E5%AE%89%E8%A3%85-Rander"><span class="toc-text">2 Ubuntu 安装 Rander</span></a></li></ol></li></ol></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2022/03/06/Mysql%E7%9A%84%E4%BC%98%E5%8C%96-%E8%87%AA%E6%88%91%E6%8F%8F%E8%BF%B0/" title="MySQL 的优化.md"><img data-lazy-src="https://img2.baidu.com/it/u=1814268193,3619863984&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=632&amp;h=500" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="MySQL 的优化.md"/></a><div class="content"><a class="title" href="/2022/03/06/Mysql%E7%9A%84%E4%BC%98%E5%8C%96-%E8%87%AA%E6%88%91%E6%8F%8F%E8%BF%B0/" title="MySQL 的优化.md">MySQL 的优化.md</a><time datetime="2022-03-06T14:54:18.000Z" title="发表于 2022-03-06 22:54:18">2022-03-06</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/03/06/MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E5%A4%87%E4%BB%BD%E5%91%BD%E4%BB%A4-20210722/" title="MySQL 数据库备份命令.md"><img data-lazy-src="https://img2.baidu.com/it/u=1814268193,3619863984&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=632&amp;h=500" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="MySQL 数据库备份命令.md"/></a><div class="content"><a class="title" href="/2022/03/06/MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E5%A4%87%E4%BB%BD%E5%91%BD%E4%BB%A4-20210722/" title="MySQL 数据库备份命令.md">MySQL 数据库备份命令.md</a><time datetime="2022-03-06T14:47:18.000Z" title="发表于 2022-03-06 22:47:18">2022-03-06</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/03/06/Git-study/" title="git 笔记.md"><img data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20220306225241.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="git 笔记.md"/></a><div class="content"><a class="title" href="/2022/03/06/Git-study/" title="git 笔记.md">git 笔记.md</a><time datetime="2022-03-06T14:47:18.000Z" title="发表于 2022-03-06 22:47:18">2022-03-06</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/03/06/Junit&amp;jdk8%E6%96%B0%E7%89%B9%E6%80%A7/" title="jdk8 新特性.md"><img data-lazy-src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.05sun.com%2Fup%2F2006%2F2020611101156542640.png&amp;refer=http%3A%2F%2Fimg.05sun.com&amp;app=2002&amp;size=f9999,10000&amp;q=a80&amp;n=0&amp;g=0n&amp;fmt=jpeg?sec=1649170568&amp;t=1d3529a6cb00dac37673cce4473d9a89" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="jdk8 新特性.md"/></a><div class="content"><a class="title" href="/2022/03/06/Junit&amp;jdk8%E6%96%B0%E7%89%B9%E6%80%A7/" title="jdk8 新特性.md">jdk8 新特性.md</a><time datetime="2022-03-06T14:47:18.000Z" title="发表于 2022-03-06 22:47:18">2022-03-06</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/03/06/Docker%20%E7%AC%94%E8%AE%B0_20210404/" title="Docker 笔记.md"><img data-lazy-src="https://gitee.com/forkiller/picture/raw/master/img/20220306223850.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Docker 笔记.md"/></a><div class="content"><a class="title" href="/2022/03/06/Docker%20%E7%AC%94%E8%AE%B0_20210404/" title="Docker 笔记.md">Docker 笔记.md</a><time datetime="2022-03-06T14:29:58.000Z" title="发表于 2022-03-06 22:29:58">2022-03-06</time></div></div></div></div></div></div></main><footer id="footer" style="background-image: url('https://gitee.com/forkiller/picture/raw/master/img/20210929231042.png')"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2022 By Steve</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="font-plus" type="button" title="放大字体"><i class="fas fa-plus"></i></button><button id="font-minus" type="button" title="缩小字体"><i class="fas fa-minus"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div></div><hr/><div id="local-search-results"></div><span class="search-close-button"><i class="fas fa-times"></i></span></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/medium-zoom/dist/medium-zoom.min.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script>function panguFn () {
  if (typeof pangu === 'object') pangu.autoSpacingPage()
  else {
    getScript('https://cdn.jsdelivr.net/npm/pangu/dist/browser/pangu.min.js')
      .then(() => {
        pangu.autoSpacingPage()
      })
  }
}

function panguInit () {
  if (false){
    GLOBAL_CONFIG_SITE.isPost && panguFn()
  } else {
    panguFn()
  }
}

document.addEventListener('DOMContentLoaded', panguInit)</script><script src="/js/search/local-search.js"></script><div class="js-pjax"></div><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = true;
POWERMODE.mobile = true;
document.body.addEventListener('input', POWERMODE);
</script><script id="click-heart" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-heart.min.js" async="async" mobile="true"></script><script src="https://cdn.jsdelivr.net/npm/pjax/pjax.min.js"></script><script>let pjaxSelectors = [
  'title',
  '#config-diff',
  '#body-wrap',
  '#rightside-config-hide',
  '#rightside-config-show',
  '.js-pjax'
]

if (false) {
  pjaxSelectors.unshift('meta[property="og:image"]', 'meta[property="og:title"]', 'meta[property="og:url"]')
}

var pjax = new Pjax({
  elements: 'a:not([target="_blank"])',
  selectors: pjaxSelectors,
  cacheBust: false,
  analytics: false,
  scrollRestoration: false
})

document.addEventListener('pjax:complete', function () {
  window.refreshFn()

  document.querySelectorAll('script[data-pjax]').forEach(item => {
    const newScript = document.createElement('script')
    const content = item.text || item.textContent || item.innerHTML || ""
    Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
    newScript.appendChild(document.createTextNode(content))
    item.parentNode.replaceChild(newScript, item)
  })

  GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update()

  typeof chatBtnFn === 'function' && chatBtnFn()
  typeof panguInit === 'function' && panguInit()

  if (typeof gtag === 'function') {
    gtag('config', '', {'page_path': window.location.pathname});
  }

  typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()

  // Analytics
  if (false) {
    MtaH5.pgv()
  }

  // prismjs
  typeof Prism === 'object' && Prism.highlightAll()

  typeof preloader === 'object' && preloader.endLoading()
})


document.addEventListener('pjax:send', function () {
  typeof preloader === 'object' && preloader.initLoading()
  
  if (window.aplayers) {
    for (let i = 0; i < window.aplayers.length; i++) {
      if (!window.aplayers[i].options.fixed) {
        window.aplayers[i].destroy()
      }
    }
  }

  typeof typed === 'object' && typed.destroy()

  //reset readmode
  const $bodyClassList = document.body.classList
  $bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode')

})

document.addEventListener('pjax:error', (e) => {
  if (e.request.status === 404) {
    pjax.loadUrl('/404.html')
  }
})</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>